#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

t = Text(root)

for i in range(10):
    t.insert(1.0, '0123456789\n')

print t.get('1.0', '2.3')

t.mark_set('ab', '3.1')
t.mark_set('cd', END)

print t.get('ab', 'cd')

t.pack()

root.mainloop()
